import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { RoleController } from './controller/role.controller';
import { Index } from './emr_imp';
import { BaseController } from './controller/base.controller';
import { DocController } from './controller/doc.controller';

@Module({
  imports: [
    TypeOrmModule.forRoot({
      type: "oracle",
      host: "127.0.0.1",
      port: 1521,
      username: "emrbzb",
      password: "new123456",
      sid: "xe",
      synchronize: true,
      logging: true,
      entities: [__dirname + '/**/*.entity{.ts,.js}'],
    })
  ],
  controllers: [
    RoleController,
    BaseController,
    DocController],
  providers: [Index],
})
export class AppModule {}
